GDK W32: Don't check dest_surface for != NULL on button events
authorРуслан Ижбулатов <lrn1986@gmail.com>
Sat, 24 Mar 2018 10:26:51 +0000 (10:26 +0000)
committerРуслан Ижбулатов <lrn1986@gmail.com>
Sat, 24 Mar 2018 10:28:11 +0000 (10:28 +0000)
dest_surface is going to always be NULL for source contexts.
Previously we used to put the root window there to pass this check,
but root windows are gone (and root surfaces never existed to begin
with), so we have to adapt.

https://bugzilla.gnome.org/show_bug.cgi?id=773299

gdk/win32/gdkdnd-win32.c

index e2d48e3ecff49870a42c6dfb5849316a89b99f58..53e72215d6c3b08b216b77580906c58af7b95aae 100644 (file)
@@ -3099,8 +3099,7 @@ gdk_dnd_handle_button_event (GdkDragContext       *context,
     return FALSE;
 #endif
 
-  if ((gdk_drag_context_get_selected_action (context) != 0) &&
-      (gdk_drag_context_get_dest_surface (context) != NULL))
+  if ((gdk_drag_context_get_selected_action (context) != 0))
     {
       g_signal_emit_by_name (context, "drop-performed",
                              gdk_event_get_time ((GdkEvent *) event));